function log(ctx) {
  console.log(ctx.method, ctx.header.host, ctx.url)
}

module.exports = () => async (ctx, next) => {
  log(ctx)
  await next()
}